<template>
	<view>
		<view>
			<video :src="videoDetail.videoUrl" style="width: 100vw;height: 600rpx;" :autoplay="false" controls></video>
		</view>
		<view>
			<text class="title">{{videoDetail.title}}</text>
		</view>
		<view>
			<!-- <text class="creator">{{videoDetail.author}}</text> -->
			<text class="publishTime">路演时间:{{videoDetail.publishTime}}</text>
		</view>
		<view class="detail_content" v-html="videoDetail.content"></view>
		<!-- <view>
			<uni-tag :text="videoDetail.categoryId" style="width: 61px;text-align: center;" />
		</view> -->
	</view>
</template>

<script>
	import env from '../../../utils/env';
	import * as data from "@/api/system/dict/data" 
	import * as video from "@/api/video";
    export default {
		components: {
		},
		data() {
			return {
				videoDetail: {},
				categaryLisy:[],
			}
		},
		methods:{
			onLoad(option) {
				// this.getCategaty()
				this.getVideoDetail(option.id);
			},
			getVideoDetail(id){
				video.getVideoDetail(id).then((res)=>{
					this.videoDetail = res.data;
					this.videoDetail.coverimage = `${env.imgUrl}` + this.videoDetail.coverimage
					this.videoDetail.videoUrl = `${env.imgUrl}` + this.videoDetail.videoUrl
				});
			}
		}
	}
	
</script>

<style>
	
	.title {
		font-size: 35rpx;
		font-weight: 700;
		padding: 15rpx;
	}
	
	.creator {
		font-size: 28rpx;
		padding: 15rpx;
		float: left;
	}
	
	.publishTime {
		font-size: 28rpx;
		padding: 15rpx;
		float: left;
	}
	
	.detail_content {
		text-indent: 2em;
		margin-top: 35rpx;
		text-indent: 2em;
		line-height: 50rpx;
		padding: 25rpx;
		justify-content: left;
	}
</style>